import request from '@/dvadmin/request/index'

export function wxLogin(data) {
    return request({
        url: '/api/uniapp/wxlogin/',
        method: 'post',
        data: data,
        custom: {
            auth: false
        }
    })
}

export function phoneLogin(data) {
    return request({
        url: '/api/uniapp/phone_login/',
        method: 'post',
        data: data,
        custom: {
            noBack: true,
            auth: false
        }
    })
}


export function pwdLogin(data) {
    return request({
        url: '/api/login/',
        method: 'post',
        data: data,
        custom: {
            noBack: true,
            auth: false
        }
    })
}

export function getUserInfo() {
    return request({
        url: '/api/uniapp/user_info/get_user_info/',
        method: 'get'
    })
}

export function sendSms(data) {
    return request({
        url: '/api/uniapp/send_sms/',
        method: 'post',
        data: data,
        custom: {
            auth: false
        }
    })
}

export function getCaptcha(data) {
    return request({
        url: '/api/captcha/',
        method: 'get',
        data: data,
        custom: {
            auth: false
        }
    })
}
